package cn.edu.scau.cmi.mengzhuorong.abstractFactory.factory;

import cn.edu.scau.cmi.mengzhuorong.abstractFactory.domainAbstractClass.ConsumerMeatSelect;

public abstract class AbstractFactory {

	public static AbstractFactory getFactory(String brand) {
		switch (brand) {
		case "Wens":
			return new WensFactory();
		case "TianBang":
			return new TianBangFactory();
		case "Aonong":
			return new AonongFactory();
		}
		return null;
	}
	
	public abstract ConsumerMeatSelect createPork();
	public abstract ConsumerMeatSelect createBeef();
	public abstract ConsumerMeatSelect createChicken();
}
